package com.handtransaction.entity;

import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import java.math.BigDecimal;

/**
 * @author Liang
 * @create 2021-03-25 17:39
 */
@Component
public class Administrator {
    private Integer aid;
    private String apassword;
    private String aname;
    private String afaculty; //院系
    private String aphone;
    private String apower; //管理员权限
    private String aheadsrc; //管理员头像图片路径
    private MultipartFile aheadimg;

    public Administrator(){}

    public Administrator(Integer aid, String apassword, String aname, String afaculty, String aphone, String apower, String aheadsrc, MultipartFile aheadimg) {
        this.aid = aid;
        this.apassword = apassword;
        this.aname = aname;
        this.afaculty = afaculty;
        this.aphone = aphone;
        this.apower = apower;
        this.aheadsrc = aheadsrc;
        this.aheadimg = aheadimg;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getApassword() {
        return apassword;
    }

    public void setApassword(String apassword) {
        this.apassword = apassword;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public String getAfaculty() {
        return afaculty;
    }

    public void setAfaculty(String afaculty) {
        this.afaculty = afaculty;
    }

    public String getAphone() {
        return aphone;
    }

    public void setAphone(String aphone) {
        this.aphone = aphone;
    }

    public String getAheadsrc() {
        return aheadsrc;
    }

    public void setAheadsrc(String aheadsrc) {
        this.aheadsrc = aheadsrc;
    }

    public MultipartFile getAheadimg() {
        return aheadimg;
    }

    public void setAheadimg(MultipartFile aheadimg) {
        this.aheadimg = aheadimg;
    }

    public String getApower() {
        return apower;
    }

    public void setApower(String apower) {
        this.apower = apower;
    }

    @Override
    public String toString() {
        return "Administrator{" +
                "aid=" + aid +
                ", apassword='" + apassword + '\'' +
                ", aname='" + aname + '\'' +
                ", afaculty='" + afaculty + '\'' +
                ", aphone='" + aphone + '\'' +
                ", apower='" + apower + '\'' +
                ", aheadsrc='" + aheadsrc + '\'' +
                ", aheadimg=" + aheadimg +
                '}';
    }
}

